//
//  UserLoginInfo.swift
//  App
//
//  Created by 汤泽川 on 2019/3/29.
//

import Foundation
import Vapor

struct UserLoginRequest : Content {
    var username : String
    var password : String
}

struct UserLoginResponse : Content {
    var accessToken : String
    var userInfo : UserInfo
}

struct UserInfoUpdateRequest : Content {
    var avatarUrl : String?
    var nickName : String?
    var gender : String?
    var introduce : String?
}

struct UserDataResponse : Content {
    var follwoing : Int //  关注数
    var follower : Int //粉丝数
    var collectCount : Int // 收藏数
}

struct ChangeuserProfileRequest : Content {
    var introduce : String?
    var avatarUrl : String?
}
